/* $Id: chat_channel.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef __CHAT_CHANNEL_H
#define __CHAT_CHANNEL_H

#include "member.h"

/// Status of a member in the chat

enum chat_status {
	Status_leader,
	Status_moderator,
	Status_member,
	Status_muted,
	Status_ignored,
	Status_none
};

/// Information on a chat channel

class chat_channel {
  public:
	std::string name;
	std::string title;
	std::string leader;
	int lines;
	bool restricted;
	int status;
	std::list<chat_member> members;
};

/// The current select channel

extern chat_channel current_channel;

/// List of possible channels

extern std::list<chat_channel> chat_channels;

#endif // __CHAT_CHANNEL_H
